package server;

import java.rmi.*;
import java.util.List;

import api.Person;

public interface RmiServer extends Remote 
{ 
	/**
	    * Retrieves the list of all the persons from DB.
	    * 
	    * @return list of persons
	    */
	   List<Person> loadAll() throws RemoteException;
	   
	   /**
	    * Stores new person in DB. 
	    * 
	    * @param person to be stored
	    */
	   void add(Person person) throws RemoteException;
	   
	   /**
	    * Updates specified person in DB.
	    * 
	    * @param person to be updated
	    */
	   void edit(Person person)throws RemoteException;
	   
	   /**
	    * Deletes specified person from DB.
	    * 
	    * @param person to be deleted
	    */
	   void delete(Person person)throws RemoteException;  
} 
